<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main"/>
        <title>${postInstance?.title}--修改评论</title>
    </head>
    <body>
        <div class="body">
            <h1>${postInstance?.title}--修改评论</h1>
            <g:if test="${flash.message}">
                <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${postedCommentInstance}">
                <div class="errors">
                    <g:renderErrors bean="${postedCommentInstance}" as="list"/>
                </div>
            </g:hasErrors>
            <g:form method="post" action="update">
                <div class="label">标题*</div>
                <g:textField class="inputStyle standardFormInput" name="title" value="${postedCommentInstance?.title}" maxlength="100"/>

                <div class="label">内容*</div>
                <g:textArea class="inputStyle standardTextArea" name="newCommentContent" value="${postedCommentInstance?.content}"/>

                <recaptcha:ifEnabled>
                    <recaptcha:recaptcha theme="clean"/>
                </recaptcha:ifEnabled>

                <input type="hidden" name="id" value="${postedCommentInstance?.id}"/>
                <input type="hidden" name="postID" value="${postInstance?.id}"/>
                <div><input class="buttonStyle" type="submit" value="修改评论"/></div>
            </g:form>
        </div>
    </body>
</html>
